package com.nyist.myticket.core.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * *
 *
 * @author yangxiaogen
 * @date 2021/12/23 15:50
 */
public class DateUtils {

    public static final String DATE_FORMATE_STRING_DEFAULT = "yyyyMMddHHmmss";
    public static final String DATE_FORMATE_STRING_A = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_FORMATE_STRING_B = "yyyy-MM-dd";

    public static String getLocalTime(){
        String nowTime = "";
        LocalDateTime now = LocalDateTime.now();

        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(DATE_FORMATE_STRING_A);
        nowTime = now.format(formatter);
        return nowTime;
    }


}
